var e = (0, require("../../@babel/runtime/helpers/interopRequireDefault").default)(require("../../kta/index")), t = require("../../utils/util"), n = getApp().eventBus;

e.default.Page({
    data: {
        showBtn: !1,
        query: {}
    },
    onShareAppMessage: function() {
        var e, o = this.data.query, a = o.encData, i = o.productType, r = void 0 === i ? "k107" : i, c = o.channel, u = void 0 === c ? "01-3535-9999-9999" : c, s = "";
        n.on("inviteRecommend_getNumber", function(e) {
            s = e;
        });
        var p = "".concat("https://txwk.10010.com", "/kcardorder/gotoUid?state=KCARD_INVITE_RECOMMEND3_ORDERLAND&isSelf=0&").concat((0, 
        t.objToStr)({
            productType: r,
            encData: a,
            channel: u,
            ADTAG: u,
            actNumber: s
        }));
        return e = {
            title: "【0元体验】戳这里get我的相似号码↓",
            imageUrl: "https://txwk.10010.com/static/wkpen/179efb787c14af74524.png",
            path: "pages/webview/index?url=" + encodeURIComponent(p)
        }, console.log(e), e;
    },
    onLoad: function(e) {
        this.setData({
            query: e
        }), n.emit("inviteRecommend_options", e);
    },
    onPageScroll: function(e) {
        var t = 0;
        n.on("inviteRecommend_getBtnTop", function(e) {
            t = e;
        });
        var o = e.scrollTop > t;
        this.setData({
            showBtn: o
        });
    }
});